package com.hsgc.controller;

import com.hsgc.exception.BizException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestController
@RequestMapping("/hello")
public class HelloWord {
    @GetMapping
    public String hello(){
//       int a=1/0;
//        if(1 == 1){
//            throw new BizException(88,"报错了您哪");
//        }

        return "hello SpringBoot";
    }
}
